<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<script src="../vue.js"></script>

<body>
  <div id="app">
    <a href="http://www.baidu.com" @click.prevent>z阻止默认事件</a>
    <a href="http://www.baidu.com">不阻止默认事件</a>
  </div>
  <script>
    const vm = new Vue({
      el: "#app"
    })
  </script>
</body>

</html>